package com.hzhk.happyrent.ui.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.hzhk.happyrent.R;
import com.hzhk.happyrent.ui.adapter.card.CardYuyueAdapter;
import com.hzhk.happyrent.ui.adapter.card.WalletItemAdapter;
import com.hzhk.happyrent.ui.view.listview.MaiTianListview;

import butterknife.BindView;
import butterknife.ButterKnife;

public class WalletActivity extends Activity implements MaiTianListview.OnMaiTianRefreshListener{

    @BindView(R.id.activity_titlebar_left)
    ImageView activityTitlebarLeft;
    @BindView(R.id.activity_titlebar_center)
    TextView activityTitlebarCenter;
    @BindView(R.id.activity_titlebar_right)
    ImageView activityTitlebarRight;
    @BindView(R.id.my_wallet_balance)
    TextView myWalletBalance;
    @BindView(R.id.lv_yuyue_card)
    MaiTianListview lvYuyueCard;
    @BindView(R.id.button_cancel_transdetaillist)
    Button buttonCancelTransdetaillist;
    @BindView(R.id.button_confirm_transdetaillist)
    Button buttonConfirmTransdetaillist;

    WalletItemAdapter walletItemAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_wallet);
        ButterKnife.bind(this);
        initView();
        initData();
    }

    private void initData() {

    }

    private void initView() {
        activityTitlebarLeft.setImageResource(R.drawable.back);
        activityTitlebarCenter.setText("我的钱包");
        activityTitlebarRight.setVisibility(View.GONE);
        lvYuyueCard.setOnMaiTianRefreshListener(this);
        walletItemAdapter = new WalletItemAdapter(this);
        lvYuyueCard.setAdapter(walletItemAdapter);


    }

    @Override
    public void onRefresh() {

    }

    @Override
    public void onLoadMore() {

    }
}
